package com.open.capacity.forum.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class CommentPraise implements Serializable {
    /**
     * 点赞id,主键,自增
     */
    @TableId(value = "prseid", type = IdType.AUTO)
    private Integer prseid;

    /**
     * 点赞用户id
     */
    private Long userid;

    /**
     * 评论id
     */
    private Long comtid;

    /**
     * 点赞状态
     */
    @TableField(exist = false)
    private Boolean praiseStatus;

    private static final long serialVersionUID = 1L;
}

